package com.foreknow.mapping;

import com.foreknow.model.Abc;

import java.sql.ResultSet;
import java.sql.SQLException;

public class AbcMappingImpl implements EntityMapping {
    @Override
    public Object mapping(ResultSet rs) throws SQLException {
        Abc  abc =new Abc();
        abc.setId(rs.getInt("id"));
        abc.setName(rs.getString("name"));
        abc.setCreatetime(rs.getString("createtime"));
        return abc;
    }
}
